package com.miguo.utils;

import android.content.Context;

import com.miguo.bean.GoodsBean;
import com.miguo.framework.utils.Log;
import com.miguo.notification.Notification;

public class LocalNotiUtils {

    public static void setLocalNoti(Context mContext, GoodsBean goods) {
        if (goods == null) {
            Log.i("data error, localNoti set failed! ");
            return;
        }

        Notification.getInstance().setNotification(mContext, true, goods);
        return;
    }

    public static void cancelLocalNoti(Context mContext, GoodsBean goods) {
        if (goods == null) {
            Log.i("data error, localNoti cancel failed! ");
            return;
        }

        Notification.getInstance().setNotification(mContext, false, goods);
        return;
    }
}
